package com.zzw.basic.fanxing;

import java.util.Comparator;
import java.util.TreeSet;

public class TreeSetTest {

	public static void main(String[] args) {
		TreeSet<String> ts = new TreeSet<>(
				new Comparator<Object>() {

					@Override
					public int compare(Object o1, Object o2) {
						return hashCode() > o2.hashCode() ? 1
								:hashCode() < o2.hashCode() ? -1:0;
					}
					
				});
		ts.add("hello");
	}
	
}
